package com.inspire.springboot.mapper;

import com.inspire.springboot.domain.Goods;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author ：inspire
 * @date ：Created in 2022/10/9 14:59
 * @description：
 * @modified By：inspire
 * @version:
 */

@Mapper
public interface GoodsXmlMapper {
    List<Goods> findAll();

    Goods findGoodsByID(int id);

    int insertGoods(Goods goods);

    int deleteGoodsByName(String name);

    int updateStockByName(Goods goods);

    List<Goods> findGoodsByName(String name);

    List<Goods> findGoodsByIds(List<Integer> ids);
}
